package com.yoso.shop.interfaces.vo.commodity;

import com.yoso.base.interfaces.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author shizejin
 * @date 2022/1/29
 * @description:
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("商品Vo")
public class CommodityVo extends BaseVo {

    @ApiModelProperty("商品编号")
    private String code;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("主分支")
    private String master;

    @ApiModelProperty("次分支")
    private String branch;

    @ApiModelProperty("单价")
    private String price;

    @ApiModelProperty("描述")
    private String details;

    @ApiModelProperty("创建人")
    private String creatBy;

    @ApiModelProperty("创建时间")
    private String creatTime;

    @ApiModelProperty("更新人")
    private String updateBy;

    @ApiModelProperty("修改时间")
    private String updateTime;

    //   以下为是非数据库属性

    @ApiModelProperty("颜色")
    private String color;

    @ApiModelProperty("尺寸")
    private String size;

    @ApiModelProperty("库存")
    private Integer number;

    @ApiModelProperty("商品标签")
    private List<String> tags;

    @ApiModelProperty("商品图片地址集合")
    private List<String> photoPathList;
}

